package com.level.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.level.system.dao.EmrParseMapper;
import com.level.system.entity.emr.DATA_HZ;
import com.level.system.service.EmrParseService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class EmrParseServiceImpl extends ServiceImpl<EmrParseMapper, DATA_HZ> implements EmrParseService {

    @Resource
    private EmrParseMapper emrParseMapper;

    @Override
    public List<Map<String, Object>> getJgxx() {
        return emrParseMapper.getJgxx();
    }

    /**********门诊病历start**************/
    @Override
    public List<DATA_HZ> queryMzbl(Map<String, Object> paramsMap) {
        return emrParseMapper.queryMZ(paramsMap);
    }

    @Override
    public void batchSaveMzbl(Map<String, Object> paramsMap) {
        emrParseMapper.batchSaveMzblHZ(paramsMap);
    }
    /**********门诊病历end**************/


    /**********入院记录start**************/
    @Override
    public List<DATA_HZ> queryRyjl(Map<String, Object> paramsMap) {
        return emrParseMapper.queryZY(paramsMap);
    }

    @Override
    public void batchSaveRyjl(Map<String, Object> paramsMap) {
        emrParseMapper.batchSaveRyjlHZ(paramsMap);
    }
    /**********入院记录end**************/


    /**********出院小结start**************/
    @Override
    public List<DATA_HZ> queryCyxj(Map<String, Object> paramsMap) {
        return emrParseMapper.queryZY(paramsMap);
    }

    @Override
    public void batchSaveCyxj(Map<String, Object> paramsMap) {
        emrParseMapper.batchSaveCyxjHZ(paramsMap);
    }

    @Override
    public List<DATA_HZ> query24hRcyjl(Map<String, Object> paramsMap) {
        return emrParseMapper.queryZY(paramsMap);
    }

    @Override
    public List<DATA_HZ> querySwjl(Map<String, Object> paramsMap) {
        return emrParseMapper.queryZY(paramsMap);
    }
    /**********出院小结end**************/

    /**********病程记录start**************/
    @Override
    public List<DATA_HZ> queryZybl(Map<String, Object> paramsMap) {
        return emrParseMapper.queryBCJL(paramsMap);
    }

    @Override
    public int batchSaveHZ(Map<String, Object> paramsMap) {
        return emrParseMapper.batchSaveHZ(paramsMap);
    }
    /**********病程记录end**************/
}
